package com.zhuhjay.system.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhuhjay
 * @since 2022-03-20
 */
@Data
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 菜单名称
     */
    private String menuName;

    /**
     * 路径
     */
    private String path;

    /**
     * 指向父级菜单
     */
    private Integer parent;

    /**
     * 同级菜单序列
     */
    private Integer orderNum;

    /**
     * 图标
     */
    private String icon;

    /**
     * 菜单状态: 0禁用 1启用
     */
    private Integer status;

    /**
     * 该菜单项的子菜单
     */
    @TableField(exist = false)
    private List<Menu> children;
}
